
export let xiandu_children = {
    namespaced: true,
    state: {
        main_data: {},
        main_data_flag: false
    },
    actions: {
        getMainData(store, data = {}) {
            let url = "/xiandu/data/id/" + data.id + "/count/" + data.num + "/page/" + data.page;
            axios.get(url).then(({
                data
            }) => {
                store.commit("setMainData", data);
            });
        },

    },
    mutations: {
        setMainData(state, data) {
            state.main_data = data;
            state.main_data_flag = true;
        },

    }
}